//
//  EPOSShops.m
//  BCGenieEffect
//
//  Created by Ios Entity Generator on 2014-03-04 16:37:33
//  Copyright (c) 2014年 Bartosz Ciechanowski. All rights reserved.
//

#import "EPOSShops.h"

@implementation EPOSShops

+(id) getEPOSShopsFromDictionary :(NSDictionary *) dic {
    EPOSShops * shops = [[EPOSShops alloc]init] ;
    shops.EntityState = [dic objectForKey:@"EntityState"];
    shops.ShopName = [dic objectForKey:@"ShopName"];
    shops.Selected = [dic objectForKey:@"Selected"];
    shops.Country = [dic objectForKey:@"Country"];
    shops.Province = [dic objectForKey:@"Province"];
    shops.AgentID = [dic objectForKey:@"AgentID"];
    shops.City = [dic objectForKey:@"City"];
    shops.ShopID = [dic objectForKey:@"ShopID"];
    shops.ID = [dic objectForKey:@"ID"];
    shops.ShopFax = [dic objectForKey:@"ShopFax"];
    shops.OwnerID = [dic objectForKey:@"OwnerID"];
    shops.ShopAddress = [dic objectForKey:@"ShopAddress"];
    shops.ShopTel = [dic objectForKey:@"ShopTel"];
    return shops ;
}

+(NSMutableDictionary *) getDictionaryFromEPOSShops :(EPOSShops* ) shops {
    NSMutableDictionary * dic = [[NSMutableDictionary alloc]init] ;
    [dic setObject:shops.EntityState forKey:@"EntityState"];
    [dic setObject:shops.ShopName forKey:@"ShopName"];
    [dic setObject:shops.Selected forKey:@"Selected"];
    [dic setObject:shops.Country forKey:@"Country"];
    [dic setObject:shops.Province forKey:@"Province"];
    [dic setObject:shops.AgentID forKey:@"AgentID"];
    [dic setObject:shops.City forKey:@"City"];
    [dic setObject:shops.ShopID forKey:@"ShopID"];
    [dic setObject:shops.ID forKey:@"ID"];
    [dic setObject:shops.ShopFax forKey:@"ShopFax"];
    [dic setObject:shops.OwnerID forKey:@"OwnerID"];
    [dic setObject:shops.ShopAddress forKey:@"ShopAddress"];
    [dic setObject:shops.ShopTel forKey:@"ShopTel"];
    return dic ;
}

@end